using System;
using System.Collections.Generic;
using System.Text;

namespace XinBang.Entity
{
    public abstract class Comment:IDomainModel
    {
        private int comid;

        public virtual int Comid
        {
            get { return comid; }
            set { comid = value; }
        }

        private string content;

        public virtual string Content
        {
            get { return content; }
            set { content = value; }
        }

        private Member memid;

        public virtual Member Memid
        {
            get { return memid; }
            set { memid = value; }
        }

        private DateTime pubtime;

        public virtual DateTime PubTime
        {
            get { return pubtime; }
            set { pubtime = value; }
        }
    }

    public class ArticleComment : Comment
    {
        private Article artid;

        public virtual Article Artid
        {
            get { return artid; }
            set { artid = value; }
        }
    }

    public class GoodsComment : Comment
    {
        private Goods gooid;

        public virtual Goods Gooid
        {
            get { return gooid; }
            set { gooid = value; }
        }

    }
}
